// @ts-ignore
/* eslint-disable */
import { PageParams } from '@/common/page';
import { request } from '@umijs/max';

export async function getReportDetailApiPage(
  data: PageParams,
  options?: { [key: string]: any },
) {
  return request<{
    code: number;
    msg?: string;
    data?: Record<string, any>;
  }>('/data-service/api/v1/report_detail/page', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}

export async function getReport(
  params: any,
  options?: { [key: string]: any },
) {
  return request<{
    code: number;
    msg?: string;
    data?: Record<string, any>;
  }>('/data-service/api/v1/report/find', {
    params,
    ...(options || {}),
  });
}